﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AceMobile.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }        
        public static string trimString(string str, int leng)
        {
            if ((str.Length > 10) && (leng < str.Length))
            {
                return str.Substring(0, leng) + "...";
            }
            else
            {
                return str;
            }
        }
    }
}
